package com.wf.pattern.factory.abstractfactory.impl;

import com.wf.pattern.factory.abstractfactory.Animal;
import com.wf.pattern.factory.abstractfactory.FarmFactory;
import com.wf.pattern.factory.abstractfactory.Plant;

/**
 * 功能描述
 *
 * @since 2021/11/3
 */
public class FarmB implements FarmFactory {
    @Override
    public Animal newAnimal() {
        return new Cattle();
    }

    @Override
    public Plant newPlant() {
        return new Vegetable();
    }
}
